﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("cud_cu_guid", Name = "index_EmpD_Emp_Guid")]
[Index("cud_project_guid", Name = "index_EmpD_Project_Guid")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class bs_client_user_dep
{
    [Key]
    public int cud__id { get; set; }

    public Guid cud__guid { get; set; }

    public Guid cud_cu_guid { get; set; }

    public Guid cud_com_guid { get; set; }

    public int cud_com_isleader { get; set; }

    public Guid? cud_area_guid { get; set; }

    public int? cud_area_isleader { get; set; }

    public Guid? cud_project_guid { get; set; }

    public int cud_project_isleader { get; set; }

    public Guid cud_dep_guid { get; set; }

    public int cud_dep_isleader { get; set; }

    /// <summary>
    /// 1直属部门 ,2兼管部门
    /// </summary>
    public int cud_type { get; set; }

    public Guid cud_add_cu_guid { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime cud_addtime { get; set; }
}
